package com.coke.demo.service.impl;

import com.coke.demo.mapper.OpenDayMapper;
import com.coke.demo.service.OpenDayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 19602
 */
@Service
public class OpenDayServiceImpl implements OpenDayService {

    private OpenDayMapper openDayMapper;

    @Autowired
    public void setOpenDayMapper(OpenDayMapper openDayMapper) {
        this.openDayMapper = openDayMapper;
    }

    /**
     * 根据实验室id查询某天是否开放
     *
     * @param labId 实验室id
     * @return List<Integer>
     */
    @Override
    public List<Integer> findDayByLabId(Integer labId) {
        return openDayMapper.findDayByLabId(labId);
    }
}
